import { connect } from 'react-redux';
import QueryScreen from '../pages/QueryScreen';
import { getQueryDate } from '../redux/actions/query';

const mapStateToProps = (state, props) => {
  return {
    queryDate: state.query.queryDate,
  };
};

const mapDispatchToProps = (dispatch, props) => {
  return {
    getQueryDateSaga: () => {
      dispatch(getQueryDate());
    },
  };
};

const QueryContainer = connect(
  mapStateToProps,
  mapDispatchToProps,
)(QueryScreen);

export default QueryContainer;
